"use strict";

const Controller = require("egg").Controller;

class HomeController extends Controller {
  async index() {
    /* this.ctx.model.Admin.create({
      username: "shab",
      password: this.ctx.service.tools.md5("123"),
      roleId: 2,
      isSuper: 1,
      addTime: "666",
    }); */
    const { ctx } = this;
    await ctx.render("default/index", {
      msg: "hi, egg",
    });
  }
}

module.exports = HomeController;
